/*
 * Represents a Railway Crossing on the track.
 * 
 * Default state is 0. Warning message is a -1.
 */
package Track;

/**
 *
 * @author Chris
 */
public class Crossing {
    
    //private int id;
    private int state;
    
    public Crossing(){
        state = 0;
    }
    
    public int getState(){
        return state;
    }
    protected void setState(int newState){
        state = newState;
    }
}
